﻿@using Newtonsoft.Json.Linq
@model FujiyBlog.Core.DomainObjects.WidgetSetting
@{
    Layout = "Widget.cshtml";

        JObject settings = JObject.Parse(Model.Settings??"{}");

}
<h4>@Html.Raw(settings.Value<string>("Title") ?? "Search")</h4>
<div class="search">
    <input type="text" id="@(Model.Id)_searchWidgetTerms" value="@Request.QueryString["terms"]" class="searchWidgetTerms" />
    <a href="javascript:void(0);" onclick="javascript:fujiyBlog.searchForm.sendSearch($('#@(Model.Id)_searchWidgetTerms').val());">
        Search</a>
</div>
